<%@include file="ValidarSession.jsp"%>
<%@include file="cabecera.jsp"%>

<p><strong>Pedido &gt; Realizar</strong></p>
<script type="text/javascript">
function multiplicar(){
m1 = document.getElementById("num1").value;
m2 = document.getElementById("num2").value;
r=m1*m2;
document.getElementById("total").value = r;
}</script>
<form id="form1" name="form1" method="post" action="GuardarPedidoServlet">
<%@page import="androids.modelo.Producto;"%>
<%
Producto vo = (Producto)request.getAttribute("vo");
%>

	<table>
		<tr>
			<td>Nombre del prodcuto:</td>
			<td><label> <input disabled="disabled " type="text"
					name="nombre" id="nombre" value="<%=vo.getNombre() %>"
					readonly="readonly" />
			</label></td>
		</tr>
		<tr>
			<td>Cantidad:</td>
			<td><input type="text" id="num1" value=""
				name="cantidad" onChange="multiplicar();"><label> </label></td>
		</tr>
		<tr>
			<td>Tipo de Entrega:</td>
			<td><select name="entrega">
					<option>normal</option>
					<option>inmediata</option>
			</select></td>
		</tr>
		<tr>
			<td>Fecha de entrega</td>
			<td><label> <input>
			</label></td>
		</tr>
		<tr>
			<td>Precio Unitario</td>
			<td><label> <input id="num2" disabled="disabled"
					type="text" name="precio" id="precio" value="<%=vo.getPrecio() %>"
					onChange="multiplicar();">
			</label></td>
		</tr>

		<tr>
			<td>SubTotal</td>
			<td><input disabled="disabled" type="text" id="total"></td>
		</tr>
		<tr>
			<td colspan="2"> <input type="submit" value="Guardar" /> <input
				type="button" value="Regresar"
				onclick="window.location='BuscarProducto.jsp' " /></td>
		</tr>
	</table>
	<p>&nbsp;</p>
</form>
<%@include file="pie.jsp"%>